package com.zb.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/2/20 0020
 **/
@Data
@ApiModel("商家企业权限保存对象")
public class CustomerAuthorSaveVo {
    @Valid
    @NotNull(message = "菜单权限不能为空，至少需要选择在一项")
    @Size(min = 1, message = "菜单权限不能为空，至少需要选择在一项")
    @ApiModelProperty(value = "菜单权限对象")
    private List<CustomerAuthorVo> authorVos;

    @ApiModelProperty(value = "删除的权限ID数组")
    private List<Long> delAuthorIds;
}
